#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''''
Created on
@author: zhuangyan
'''
from datetime import timedelta


class Config(object):
    DEBUG               = True
    SECRET_KEY          = 'secret'

    @classmethod
    def init_app(cls, app):
        import logging
        import logstash
        app.logger.setLevel(logging.INFO)
        app.logger.addHandler(logstash.TCPLogstashHandler("172.18.5.221", 5044, version=1))
